﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Booking Result
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Booking Result</h2>

      <% using (Html.BeginForm("Index", "Payment", FormMethod.Post, new { id = "bookingResultForm", enctype = "multipart/form-data" }))
         { %>

           <fieldset>
        <legend>Booking Result Message</legend>
       
       <font size ="+2"> <%: (string)ViewData["bookingResultMessage"] %>
           <p>
           <% if ((Boolean)ViewData["isBookingSucc"] == true)
              { %>
             <br />
            <!--input type="submit" value="Proceed To Payment" /-->
             <%:Html.ActionLink("Proceed To Pay", "Index", "Payment")%>
            <br />
            <br />
       <%:Html.ActionLink("Pay Next Time", "Search", "Flight")%>
     <%}
              else
              { %>
                <%:Html.ActionLink("Back to Home Page", "Search", "Flight")%>
     <%} %>

        </p>
        </font>
         </fieldset>
        <%} %>
</asp:Content>
